﻿@model CTMOES.Models.LogOnModel
@{
    ViewBag.Title = "登录";
}
<div id="login">
    @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
    @using (Html.BeginForm())
    {
        <div id="lheader">
            登录</div>
        <div id="userBlock">
            <span>用户</span> <span>
                @Html.TextBoxFor(m => m.UserName, new { @id = "userBox" })
                @Html.ValidationMessageFor(m => m.UserName)
            </span>
        </div>
        <div id="passwordBlock">
            <span>密码</span> <span>
                @Html.PasswordFor(m => m.Password, new { @id = "passwordBox" })
                @Html.ValidationMessageFor(m => m.Password)
            </span>
        </div>
        <p>
            <input id="loginBtn" type="submit" value="" />
        </p>}
    @Html.ActionLink("还没有账号？马上注册", "Register", "Account", new { @id = "register" })
</div>
